﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Service.Interface
{
    public interface IReplyService : IService<Reply>
    {
        /// <summary>
        /// 获取回复分页集合
        /// </summary>
        /// <param name="pageID">共享页ID</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="pageSize">页大小</param>
        /// <param name="pageCount">总页数</param>
        /// <returns></returns>
        IList<Reply> LoadAllReply(int pageID, int pageIndex, int pageSize, out int pageCount);

        /// <summary>
        /// 保存回复同时更新共享页回复数
        /// </summary>
        /// <param name="reply"></param>
        /// <returns></returns>
        void SaveReplyAndUpdatePageReplyCount(Reply reply);

        /// <summary>
        /// 查询页总回复数
        /// </summary>
        /// <param name="pageID">页ID</param>
        /// <returns></returns>
        int SelectReplyCount(object pageID);
    }
}
